fruit_scores = {
'apple': '⭐️⭐️⭐️⭐️',
'pear': '⭐️⭐️⭐️⭐️⭐️',
'banana': '⭐️⭐️⭐️',
'kumquat': '⭐️?'
}
while True:
fruit = input('Fruit: ')
if not fruit:
break
score = fruit_scores.get(fruit, '????')
print(f'{fruit}: {score}')
Fruit: pear pear: ⭐️⭐️⭐️⭐️⭐️ Fruit: peach peach: ???? Fruit:
You are helping to organize the next WICS Skillathon, where students can come hear various speakers in CS provide brief workshops on various tech skills.
You have a list of speakers and a list of available rooms. You want to pair up speakers with a room.
Write a function that takes a list of speakers and a list of rooms (both having the same length) and returns a dictionary of room assignments.
room_assignments.py
¶Participants in your Skillathon have a list of speakers they want to hear.
Write a function that takes a list of speaker/time tuples and returns a list of speaker/room/time tuples.
room_assignments.py
¶The speaker-to-room dictionary was helpful for making individual itineraries.
Now the building-scheduling crew wants a dictionary that maps rooms to speakers.
Because the room-assignments dictionary is 1-to-1 (the keys and the values are all unique), we can do this.
Write a function that takes the room assignments and returns a new dictionary mapping rooms to speakers.
room_assignments.py
¶The various speakers have different audio-visual setups for their presentations.
One of your team members made a CSV file that indicates each speaker and their AV requests.
Write a function that takes a file name and returns a dictionary mapping speaker to AV request.
av_requests.csv
¶room_assignments.py
¶